Create New Table
create table if not exists tablename(
colname coltype,
...
) comment '注释:'
partitioned by (partition_col partition__col_type)
row format delimited fields terminated by '\t' --字段间的分割符
location '{hdfs_path}/tablename' --存储的hdfs位置
stored as rcfile --存储为rcfile格式
说明:
- coltype:string、tinyint、smallint、int、bigint、bollean、float、double、binary、timestamp、decimal、date、varchar、char
- 存储数据格式:textfile、rcfile、parquet 、sequencefile、orc、avro、